<%--
  Created by IntelliJ IDEA.
  User: chenjun
  Date: 2017/10/12
  Time: 15:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/commons/taglibs.jsp" %>
<%@ taglib prefix="sys" tagdir="/WEB-INF/tags" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>license验证页面</title>
    <jsp:include page="../../commons/common-add.jsp"></jsp:include>
    <link href="${basePath}/statics/modules/sys/system/css/logo_change.css" type="text/css" rel="stylesheet"/>
    <script type="text/javascript" src="${basePath}/statics/modules/license/js/license_check.js"></script>
    <script type="text/javascript" src="${basePath}/statics/thirdparty/ajaxFileUploader/ajaxFileUploader.js"></script>

    <style>
        #license-info {
            margin: 50px 10px 0px 80px;
            width: 1030px;
            height: 300px;
            background-color: #fcf8e3;
            overflow-x: scroll;
            overflow-y: scroll;
        }

        #license-info table tr {
            height: 45px;
        }

        .lic-table-td-right{
            font-weight: 700;
            font-size: 12px;
            width:140px;
            padding-left: 5px;
        }

        .lic-table-td-left{
            font-size: 12px;
            width: 890px;
            word-break: break-all;
        }

    </style>
</head>
<body>
<div  class="box-body"  style="margin:0 auto;">
    <form id="inputForm" action="" method="post" class="form-horizontal" enctype="multipart/form-data">
        <div class="top-form-element-margin">
            <div class="form-group" >
                <label for="licFile" class="col-sm-2 control-label text-pull-right">
                    <b class="must-star">*</b>
                    <span>选择license文件</span>
                </label>
                <div class="col-sm-3">
                    <input type="file"  id="licFile" name="licFile" >
                </div>
            </div>

            <div id="fileName">
                <div class="form-group">
                    <label for="licenseName" class="col-sm-2 control-label text-pull-right">
                        <b class="must-star">*</b>
                        License名称
                    </label>
                    <div class="col-sm-3">
                        <input type="text" autofocus class="form-control required" id="licenseName" name="licenseName" placeholder="License名称"  >
                    </div>
                </div>
            </div>

            <div class="form-group ">
                <label for="licenseVersion" class="col-sm-2 control-label text-pull-right">
                    <b class="must-star">*</b>
                    License版本选择
                </label>
                <div class="col-sm-3">
                    <select autofocus class="form-control required" id="licenseVersion" name="licenseVersion">
                    </select>
                </div>
            </div>

            <div class="row" style="margin:10px 0px 10px 12px;" >
                <button  style="width: 10%;margin-left: 22%;margin-top: 20px" class=" btn btn-primary" type="button"  onclick="f_verfy();" >验证</button>
            </div>
        </div>
    </form>
    <div style="display: none" id="license-info">
        <table>
            <tr>
                <td class="lic-table-td-right">License名称:</td>
                <td class="lic-table-td-left"><span id="lic-name"></span></td>
            </tr>
            <tr>
                <td class="lic-table-td-right">License版本:</td>
                <td class="lic-table-td-left"><span id="lic-edition"></span></td>
            </tr>
            <tr>
                <td class="lic-table-td-right">开始时间:</td>
                <td class="lic-table-td-left"><span id="lic-start"></span></td>
            </tr>
            <tr>
                <td class="lic-table-td-right">结束时间：</td>
                <td class="lic-table-td-left"><span id="lic-end"></span></td>
            </tr>
            <tr>
                <td class="lic-table-td-right">主板序列号:</td>
                <td class="lic-table-td-left"><span id="lic-board"></span></td>
            </tr>
            <tr>
                <td class="lic-table-td-right">系统序列号：</td>
                <td class="lic-table-td-left"><span id="lic-system"></span></td>
            </tr>
            <tr>
                <td class="lic-table-td-right">CPU序列号:</td>
                <td class="lic-table-td-left"><span id="lic-cpu"></span></td>
            </tr>
            <tr>
                <td class="lic-table-td-right">硬盘信息：</td>
                <td class="lic-table-td-left"><span id="lic-disk"></span></td>
            </tr>
            <tr>
                <td class="lic-table-td-right">IP地址:</td>
                <td class="lic-table-td-left"><span id="lic-ip"></span></td>
            </tr>
            <tr>
                <td class="lic-table-td-right">MAC地址:</td>
                <td class="lic-table-td-left"><span id="lic-mac"></span></td>
            </tr>
            <tr>
                <td class="lic-table-td-right">主机管理数量(台):</td>
                <td class="lic-table-td-left"><span id="lic-machines"></span></td>
            </tr>
            <tr>
                <td class="lic-table-td-right">描述信息:</td>
                <td class="lic-table-td-left"><span id="lic-info"></span></td>
            </tr>
        </table>
    </div>
</div>

</body>
</html>
